CXX		:= g++
CXX_FLAGS       := -g -std=c++17 
SRC		:= src

# 定义变量
DEFINES := -DGLFW_INCLUDE_NONE
# 头文件目录
INCLUDE         := -I./vendor -I./vendor/glad/include -I./include  -Ivendor/spdlog/include
#link 链接的目录
LIB		:= -Llib 

#link 动态链接名称 ./lib/glew32s.dll
# window -lglfw3dll -lopengl32
# macos -lglfw3dll -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo
# LIBRARIES	:= -lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo
LIBRARIES	:= -lglfw3dll -lopengl32
EXECUTABLE	:= main 

OUTPUT := ./output/


all:./$(EXECUTABLE)

run: all 
	./$(EXECUTABLE)

$(EXECUTABLE):$(SRC)/*.cpp $(SRC)/*.c
	$(CXX) $(CXX_FLAGS) $(INCLUDE) $(LIB) $(DEFINES) $^ -o $@ $(LIBRARIES)

